quartz: Actually use the window background PATTERN color
authorKristian Rietveld <kris@lanedo.com>
Thu, 4 Oct 2012 07:06:01 +0000 (09:06 +0200)
committerMichael Natterer <mitch@gimp.org>
Tue, 9 Oct 2012 14:19:29 +0000 (16:19 +0200)
Before we used a window's background color, which resulted in corrupted
display in some cases, presumably because we didn't reset the active
pattern. This patch seems to eliminate the observed corruption.
(cherry picked from commit 0e42cf81f1dad319489e447c6c4e640bed2ab915)

gdk/quartz/GdkQuartzView.c

index 49553477101961f48a51303b7dc1cb417667ed96..0b59119f2b6d52220349612fc2e6688e08fe4c84 100644 (file)
@@ -92,7 +92,7 @@
        */
       [NSGraphicsContext saveGraphicsState];
 
-      [[[self window] backgroundColor] setFill];
+      [[NSColor windowBackgroundColor] setFill];
       [NSBezierPath fillRect:rect];
 
       [NSGraphicsContext restoreGraphicsState];